/*
 * This file is Copyright 2002-2006 Loyola University Chicago,
 * Department of Computer Science and the Emerging Technologies Laboratory.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License via
 *    http://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.citep.db.hibernate;

import com.citep.business.*;
import java.math.BigDecimal;

public class EntryDAO implements Entry {
	private int id;
	private Transaction transaction;
	private Account account;
	private Account source;
	private EntryTypes type;
	private BigDecimal amount;
	private String memo;
	/**
	 * @return Returns the account.
	 */
	public Account getAccount() {
		return account;
	}
	/**
	 * @param account The account to set.
	 */
	public void setAccount(Account account) {
		this.account = account;
	}
	/**
	 * @return Returns the amount.
	 */
	public BigDecimal getAmount() {
		return amount;
	}
	/**
	 * @param amount The amount to set.
	 */
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	/**
	 * @return Returns the id.
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id The id to set.
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return Returns the memo.
	 */
	public String getMemo() {
		return memo;
	}
	/**
	 * @param memo The memo to set.
	 */
	public void setMemo(String memo) {
		this.memo = memo;
	}
	/**
	 * @return Returns the transaction.
	 */
	public Transaction getTransaction() {
		return transaction;
	}
	/**
	 * @param transaction The transaction to set.
	 */
	public void setTransaction(Transaction transaction) {
		this.transaction = transaction;
	}
	/**
	 * @return Returns the type.
	 */
	public EntryTypes getType() {
		return type;
	}
	/**
	 * @param type The type to set.
	 */
	public void setType(EntryTypes type) {
		this.type = type;
	}
	
	public Account getSource() {
		return source;
	}
	
	public void setSource(Account source) {
		this.source = source;
	}
}
